package com.zero.dubbo.service;

import com.zero.dubbo.dao.IUserRpcService;
import com.zero.dubbo.model.User;
import org.apache.dubbo.config.annotation.Service;

@Service(version = "${dubbo.provider.IUserRpcService.version}")
public class UserServiceImpl implements IUserRpcService {


    @Override
    public User get(Integer id) {
        User user = new User();
        user.setId(id);
        user.setName("wql" + id);
        user.setGender(id % 2 + 1);
        return user;
    }
}
